Release 10.1A: OpenEdge Development:
Java Open Clients
Getting OUTPUT parameter values
After running a procedure or user-defined function you can access the
OUTPUTparameters using the followingParamArraymethod:
paramNumSpecifies the 0-based position of the parameter.
The output value is always returned as an
Object. You need to cast theObjectand assign it to the output variable you have created. If the value returned can be theUnknown value (?) (nullin Java), for intrinsic types, you must use theObjecttype that corresponds to the intrinsic type to handle the return of the actual value.For example, to get an output integer parameter that might be set to Unknown value (
?) by the 4GL, you might do the following:
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |